package com.example.travel_front.Model;

public class Chat {
    private int id;
    private String title;
    private String imageUrl;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    private String subtitle;
    private String timestamp;
    // 可以根据需要添加其他属性，如头像资源ID

    // 构造器、getter 和 setter
    public Chat(String title, String subtitle, String timestamp,String imageUrl,int id) {
        this.title = title;
        this.subtitle = subtitle;
        this.timestamp = timestamp;
        this.imageUrl = imageUrl;
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
// ... getter 和 setter 方法 ...
}

